sub msxwaitvbl()
  asm
    halt
    end asm
  end sub
